fix(tools): sync Slack customer-context source contract#162
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 55 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughSlack is added as a supported customer context source type in the tools contracts, validation expectations, runtime error output, contract hash, and patch release notes. ChangesCustomer context Slack support
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
packages/tools/tests/client.test.ts (1)
115-130: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick winExercise Slack through the runtime validator.
These assertions verify the exported arrays, but not
resolveCustomerContextSearchInput. Add a Vitest case that passes"slack"and asserts the returned request contains"SLACK"; otherwise the tests could pass while the actual normalization path rejects Slack.As per coding guidelines,
*.test.tsfiles should use Vitest.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/tools/tests/client.test.ts` around lines 115 - 130, Add a Vitest test in the existing customer source type test area that calls resolveCustomerContextSearchInput with the lowercase input "slack" and verifies the returned request contains the canonical "SLACK" value. Keep the existing exported-array assertions, and use Vitest APIs consistent with the surrounding *.test.ts file.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@packages/tools/tests/client.test.ts`:
- Around line 115-130: Add a Vitest test in the existing customer source type
test area that calls resolveCustomerContextSearchInput with the lowercase input
"slack" and verifies the returned request contains the canonical "SLACK" value.
Keep the existing exported-array assertions, and use Vitest APIs consistent with
the surrounding *.test.ts file.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: d768aa93-2d72-4824-9c13-20bb1f07fdad
📒 Files selected for processing (3)
.changeset/customer-context-slack-source.mdpackages/tools/src/contracts.tspackages/tools/tests/client.test.ts
Summary
Why
Core PR #1569 exposes Slack as a customer-context search source. The SDK contract must match before the Core drift gate can pass.
Verification
The broader local browser suite passed 132 tests and timed out only in the unrelated live Cal.com callback test.
Summary by CodeRabbit
New Features
Documentation